package com.dl.starandfans;

/**
 * Time    : 2023/3/23 8:27
 * Author  : 王摇摆
 * FileName: Agent.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Agent {
    //经纪人将三者关联好
    private Star star;
    private Fans fans;
    private Company company;

    //经纪人依赖三者
    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void meeting() {
        System.out.println(this.fans.getName() + "和" + this.star.getName() + "进行了见面会！");
    }

    public void bussiness() {
        System.out.println(this.star.getName() + "和" + this.company.getName() + "进行商业会谈！");
    }

}
